<?php
/**
 * Created by PhpStorm.
 * User: 17985
 * Date: 2017/9/13
 * Time: 15:37
 */
use yii\db\Query;
$data=(new Query())
    ->select('*')
    ->from('auth_item')
    ->where(['type'=>2])
    ->all();
?>

    <table class="table table-hover">
        <thead>
        <tr>
            <th>权限</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
      <?php foreach($data as $v){?>
        <tr>
            <td><?=$v['name']?></td>
            <td><a href="">删除</a> | <a href="">修改</a></td>
        </tr>
        <?php }?>
        </tbody>
    </table>


